package cn.tedu.jsd2205the.back.end.project.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 浏览历史
 */
@Data
public class ViewHistory implements Serializable {
    private String id;
    private Integer productId; // 评商品id
    private String userId; // 用户id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime viewTime; // 浏览时间
}